import React, { lazy } from "react";
const DocterList = lazy(() => import("../pages/ask/docterList"));
const CurrentAsk = lazy(() => import("../pages/ask/currentAsk"));
const DocterCommentList = lazy(() => import("../pages/ask/docterCommendList"));
const DocterDetail = lazy(() => import("../pages/ask/docterDetail"));
const ChatDialog = lazy(() => import("../pages/ask/chatDialog"));

export const AskRouter = [
  {
    path: "/ask/docter/list",
    element: <DocterList></DocterList>,
    meta: {
      title: "医生列表",
    },
  },
  {
    path: "/ask/current/",
    element: <CurrentAsk></CurrentAsk>,
    meta: {
      title: "当前问诊",
    },
  },
  {
    path: "/ask/docter/commend",
    element: <DocterCommentList></DocterCommentList>,
    meta: {
      title: "医生评论列表",
    },
  },
  {
    path: "/ask/docter/:id",
    element: <DocterDetail></DocterDetail>,
    meta: {
      title: "医生详情",
    },
  },
  {
    path: "/ask/chat/dialog",
    element: <ChatDialog></ChatDialog>,
    meta: {
      title: "聊天问诊",
    },
  },
];
